package com.ki.rent.service.impl;

import com.ki.rent.entity.Booking;
import com.ki.rent.mapper.BookingMapper;
import com.ki.rent.service.BookingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author
 * @since 2020-06-06
 */
@Service
public class BookingServiceImpl extends ServiceImpl<BookingMapper, Booking> implements BookingService {

    @Autowired
    public BookingMapper bookingMapper;
    @Override
    public List<Booking> selectHost(Integer hostId) {
        return bookingMapper.selectHost(hostId);
    }

    @Override
    public List<Booking> sucBooking() {
        return bookingMapper.selectHost(1);
    }


}
